﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Dune2013
{
    public class RecolectorStateText: Text
    {
        public Recolector recolector;
        public Vector2 distTexto;
        public RecolectorStateText(Recolector recolector, Vector2 distTexto, SpriteFont font, string text, Vector2 position, Color color) :
            base(font, text, position, color) {
                this.recolector = recolector;
                this.distTexto = distTexto;
        }
        public override void Draw(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch)
        {
            if (font != null && color != null)
            {
                spriteBatch.DrawString(font, "Petroleo cargado: " + recolector.carga, position - distTexto, color);
                spriteBatch.DrawString(font, "Nafta restante: " + recolector.nafta, position, color);
                spriteBatch.DrawString(font, "HP recolector: " + recolector.hp, position + distTexto, color);
            }
        }
    }
}
